package services;

import domain.entities.DrogaImportacion;
import domain.entities.DrogaImportacionDAO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created with IntelliJ IDEA.
 * User: vgonzalez
 * Date: 25/09/12
 * Time: 13:15
 * To change this template use File | Settings | File Templates.
 */
@Service
public class DrogaImportacionService {
    DrogaImportacionDAO dao;

    public DrogaImportacionService() {
    }

    @Autowired
    public DrogaImportacionService(DrogaImportacionDAO dao) {
        this.dao = dao;
    }

    public DrogaImportacion findById(Integer id){
        return dao.findById(id);
    }

    public void save(DrogaImportacion drogaImportacion){
        dao.attachDirty(drogaImportacion);
    }

}
